<div class="box">
	<div class="box-header well">
		<h2><i class="icon-info-sign"></i> Jquery插件</h2>
		<div class="box-icon">
			<a href="/jqueryplugin" class="btn btn-round" title="更多"><i class="icon-plus"></i></a>
		</div>
	</div>
	<div class="box-content">
		<div class="row-fluid">
			<?php 
				$showLinks = array_slice($jqueryPlugins, 0, count($jqueryPlugins)/2 + 1); 
				$showImgs = array_slice($jqueryPlugins, count($jqueryPlugins)/2 + 1);
			?>
			<div class="span5">
				<ul class="unstyled">
					<?php if (!empty($showLinks)):?>
						<?php foreach ($showLinks as $k => $jqueryPlugin):?>
						<li>
						  	<a href="/jqueryplugin/detail/id/<?php echo $jqueryPlugin['id']?>"><?php echo $jqueryPlugin['name']?></a>
					  		<span class="pull-right"><?php echo $jqueryPlugin['created_date']?></span>
						</li>
						<?php endforeach;?>
					<?php else:?>
						<div class="alert alert-info">
							暂时没有数据
						</div>
					<?php endif;?>
				</ul>
			</div>
			
			<div class="span7 box noMarginT noMarginB">
				<div class="box-content posterity-noMarginB text-center">
					<?php if (!empty($showImgs)):?>
						<?php $showImgs = array_chunk($showImgs, 2, true); ?>
						<?php foreach ($showImgs as $line => $items):?>
							<div class="row-fluid">
								<?php foreach($items as $k => $jqueryPlugin): ?>
								<div class="span6">
									<a class="thumbnail marginB1-3" title="<?php echo $jqueryPlugin['name']; ?>" href="<?php echo url('jqueryplugin/detail', array('id' => $jqueryPlugin['id'])); ?>">
								  		<img class="h80MaxWparent" alt="<?php echo $jqueryPlugin['name']; ?>" src="<?php echo $jqplugin_url . $jqueryPlugin['root_foldername'] . '/' . $jqueryPlugin['thumbnail']; ?>" />
								  		<?php echo $jqueryPlugin['name']?>
								  	</a>
								</div>
								<?php endforeach; ?>
							</div>
						<?php endforeach;?>
					<?php else:?>
						<div class="alert alert-info">
							暂时没有数据
						</div>
					<?php endif;?>
				</div>
			</div>
		</div>
	</div>
</div>